package com.cloudatum.controller;

import com.cloudatum.service.ActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 主页信息
 * Created by zhoujian on 2015/10/30.
 */
@RestController
@RequestMapping("index")
public class IndexController {

    @Autowired
    private ActivityService activityService;

    @RequestMapping("current")
    public Map index(){
        return activityService.currentActivity();
    }

}
